﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Produce.Infrastructure.Migrations
{
    public partial class 添加上一次配种日期字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "BreedinghenType",
                table: "Breeding",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "LastDate",
                table: "Breeding",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SeedmaleType",
                table: "Breeding",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BreedinghenType",
                table: "Breeding");

            migrationBuilder.DropColumn(
                name: "LastDate",
                table: "Breeding");

            migrationBuilder.DropColumn(
                name: "SeedmaleType",
                table: "Breeding");
        }
    }
}
